package com.androidme.app.framework.util;

import android.app.Activity;
import android.content.Context;
import android.telephony.TelephonyManager;

public class PhoneUtil {
    public static int getSDKVersionNumber() {
        int sdkVersion;
        try {
            sdkVersion = Integer.valueOf(android.os.Build.VERSION.SDK);

        } catch (NumberFormatException e) {
            sdkVersion = 0;
        }
        return sdkVersion;
    }

    public static String getImei(Activity act) {
        String imei = ((TelephonyManager) act
                .getSystemService(Context.TELEPHONY_SERVICE)).getDeviceId();
        return imei;
    }
}
